<template>
  <div>
    <van-swipe :autoplay="3000">
      <van-swipe-item v-for="(item, index) in imgList" :key="index">
        <img :src="item.photo_url" :alt="item.title" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  data () {
    return {
      images: [
      ],
      imgList: [],
    }
  },
  mounted(){
    this.$axios.get(this.$api_url + '/other/get-banner-list').then(r=>{
      this.imgList = r.data.data;
    });
  },
  activated(){
      console.log(this.imgList)
    },
}
</script>

<style scoped>

img{width: 100%;height: 172.5px;}
</style>
